package com.simpleaccount.Cloud;

import com.simpleaccount.User.AppUser;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.BmobUser;
import cn.bmob.v3.datatype.BmobDate;

/**
 * Created by zhou on 2017/7/18.
 */

public class Bill extends BmobObject {//class
    private String username;
    private int Id;
    private Double money;
    private String category;
    private BmobDate date;
    private String msg;



    //username
    public String getUsername() {
        return username;
    }

    public void setUsername(String userName) {
        AppUser user = BmobUser.getCurrentUser(AppUser.class);
        this.username = user.getUsername();
    }
   //id
    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }
   //money
    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }
  //category
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }
    //date
    public BmobDate getDate() {
        return date;
    }

    public void setDate(BmobDate date) {
        this.date = date;
    }
    //msg
    public String getMsg(){return msg;}
    public void setMsg(String msg){this.msg=msg;}
}//class